//
// 205inter.cpp for  in /home/goldbe_y//cpp/Maths/205inter
//
// Made by yoni goldberg
// Login   <goldbe_y@epitech.net>
//
// Started on  Wed Apr 20 08:05:39 2011 yoni goldberg
// Last update Fri Apr 29 18:09:33 2011 leo faucon
//

#include "maths.hpp"
#include "convert.hpp"

int main(int argc, char *argv[])
{
  if (argc == 3)
    {
      double a,b;
      string_to_var(a, argv[1]);
      string_to_var(b, argv[2]);

      Maths		test(a, b);
      SDL_opt       win(700, 600, "205 Inter loi normale centree");
      test.loi();
      test.courbe(&win);
    }
  else if (argc == 5)
    {
      double a,b,c,d;
      string_to_var(a, argv[1]);
      string_to_var(b, argv[2]);
      string_to_var(c, argv[3]);
      string_to_var(d, argv[4]);
      Maths		test(a ,b, c, d);
      SDL_opt       win(700, 600, "205 Inter loi normale");
      test.loi();
      test.courbe(&win);
    }
  else
    std::cout << "Usage : ./205inter a b  |  a et b les deux bornes" << std::endl;
  return 0;
}
